﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MemoLib
{
    [Table("MemoItem")]
    public partial class MemoItem
    {
        #region Factory Method

        /// <summary>
        /// Create a new MemoItem object.
        /// </summary>
        /// <param name="itemID">Initial value of the ItemID property.</param>
        /// <param name="itemStatus">Initial value of the ItemStatus property.</param>
        /// <param name="itemOrder">Initial value of the ItemOrder property.</param>
        /// <param name="itemQuestion">Initial value of the ItemQuestion property.</param>
        /// <param name="itemAnswer">Initial value of the ItemAnswer property.</param>
        public static MemoItem CreateMemoItem(global::System.Int64 itemID, global::System.Int64 itemStatus, global::System.Int64 itemOrder, global::System.String itemQuestion, global::System.String itemAnswer)
        {
            MemoItem memoItem = new MemoItem();
            memoItem.ItemID = itemID;
            memoItem.ItemStatus = itemStatus;
            memoItem.ItemOrder = itemOrder;
            memoItem.ItemQuestion = itemQuestion;
            memoItem.ItemAnswer = itemAnswer;
            return memoItem;
        }

        #endregion
        #region Primitive Properties

        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public global::System.Int64 ItemID { get; set; }

       
        public global::System.Int64 Book { get; set; }
        
        public global::System.Int64 Category { get; set; }

        public global::System.Int64 ItemStatus { get; set; }

        public global::System.Int64 ItemOrder { get; set; }
        public global::System.String ItemName { get; set; }

        public global::System.String ItemType { get; set; }

        public global::System.String ItemQuestion { get; set; }

        public global::System.String ItemAnswer { get; set; }

        public global::System.String ItemPicture { get; set; }

        public global::System.String ItemSound { get; set; }

        public global::System.String ItemVideo { get; set; }

        public global::System.String ItemDesc { get; set; }

        public global::System.String ItemRelation { get; set; }

        public global::System.String ItemSource { get; set; }

        public global::System.String ItemFlow { get; set; }
        #endregion
    }

    [Table("MemoConfig")]
    public class MemoConfig
    {
        [Key]
        public long ConfigID { get; set; }
        public string ConfigName { get; set; }
        public string ConfigValue { get; set; }
        public string ConfigValueType { get; set; }
    }

    [Table("MemoCategory")]
    public partial class MemoCategory
    {
        [Key]
        public long CategoryID { get; set; }

        public string CategoryName { get; set; }

    }
}
